#!/bin/bash

cur=`pwd`

sudo docker service create snakyserver --name snaky-ser \
	--restart-condition none \
    --mount type=bind,source=/opt/data/todocker/av,destination=/opt/data/av \
	--mount type=bind,source=/opt/data/todocker/logs,destination=/opt/data/logs \
	--mount type=bind,source=$cur/snaky-config,destination=/opt/data/proj/apps/snakyserver/etc \
	-p 12306:12306 \
	jmdvirus/snakyserver:latest \
	/bin/sh /opt/data/proj/apps/snakyserver/start.sh

